import request from '@/utils/request'

export default {
  getPyqList(page, limit) {
    return request({
      url: `/pyq/getPyq/${page}/${limit}`,
      method: 'get',
    })
  },

  searchPyqList(page, limit, pyqObj) {
    return request({
      url: `/pyq/searchPyq/${page}/${limit}`,
      method: 'post',
      data: pyqObj
    })
  },

  getPyqComment(pyqId) {
    return request({
      url: `/pyqcomment/getComment/${pyqId}`,
      method: 'get'
    })
  },

  deleteComment(commentId){
    return request({
      url: `/pyqcomment/deleteComment/${commentId}`,
      method: 'delete'
    })
  },

  deletePyq(pyqId){
    return request({
      url: `/pyq/deletePyq/${pyqId}`,
      method: 'delete'
    })
  }

}
